package com.patents.service;

import com.patents.pojo.Patents;

import java.util.List;

public interface PatentsService {
    //增加一个Patents
    int addPatents(Patents patents);

    //根据id删除一个Patents
    int deletePatentsById(int id);

    //更新Patents
    int updatePatents(Patents patents);

    //根据id查询,返回一个Patents
    Patents queryPatentsById(int id);

    //根据申请人查询
    Patents queryPatentsByPatenter(String patenter);

    //查询全部Patents,返回list集合
    List<Patents> queryAllPatents();
}
